<html>
<head>
<title>Home</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#FFFFFF" text="#000000">
<div align="left"> </div>
<br>
<br>
<?php
$serverpath=$_SERVER['DOCUMENT_ROOT'];
include ($serverpath.'/Classes/Client.php');
include ($serverpath.'/funciones.php');
$serial_client = file_get_contents('store_client');
$client = unserialize($serial_client);
$serial_factura = file_get_contents('store_factura');
$factura = unserialize($serial_factura);
echo' 
<table width="850" border="0" cellpadding="0" cellspacing="0">
  <tr> 
    <td valign="top" height="39" colspan="6"> 
      <div align="center"><font size="6">Factura</font></div>
    </td>
    <td width="11"></td>
  </tr>
  <tr> 
    <td width="67" height="24"></td>
    <td width="28"></td>
    <td width="66"></td>
    <td width="257"></td>
    <td width="45"></td>
    <td width="376"></td>
    <td></td>
  </tr>
  <tr> 
    <td height="19" valign="top" colspan="4"><b><i>Nombre:</i></b>'.$client->get_firstname().'</td>
    <td></td>
    <td valign="top"><b><i>Apellido:</i></b>'.$client->get_lastname().'</td>
    <td></td>
  </tr>
  <tr> 
    <td height="13"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="19" valign="top" colspan="4"><b><i>Direcion de envio:</i></b></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="10"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="19" valign="top" colspan="4"><i><b>Calle:</b></i>'.$client->get_address().'</td>
    <td></td>
    <td valign="top"><b><i>Codigo Postal:</i></b>'.$client->get_zipCode().'</td>
    <td></td>
  </tr>
  <tr> 
    <td height="13"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="20" valign="top" colspan="4"><b><i>Cuidad:</i></b>'.$client->get_city().'</td>
    <td></td>
    <td valign="top"><b><i>Pais:</i></b>'.$client->get_country().'</td>
    <td></td>
  </tr>
  <tr> 
    <td height="16"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="22" valign="top" colspan="4"><b><i>Tarjeta:</i></b>'.$client->get_cardtype().'</td>
    <td></td>
    <td valign="top"><b><i>Numero:</i></b>'.$client->get_cardnumber().'</td>
    <td></td>
  </tr>
  <tr> 
    <td height="22"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="28" valign="top" colspan="4"><b><font size="4">Libros comprados:</font></b></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="20"></td>
    '.retriveitemsf().'
  
  </tr>
  <tr> 
    <td height="21" valign="top" colspan="4"></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="44"></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
  <tr> 
    <td height="19" valign="top" bgcolor="#999999"> 
      <div align="center"><a href="envio.php"><b>Aceptar</b></a></div>
    </td>
    <td></td>
    <td valign="top" bgcolor="#999999"><a href="home.php"><b>Cancelar</b></a></td>
    <td></td>
    <td></td>
    <td></td>
    <td></td>
  </tr>
</table>
';
?>
</body>
</html>